package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcFamilyMedicalHistoryMapper;
import com.csun.cmny.provider.model.domain.OmcFamilyMedicalHistory;
import com.csun.cmny.provider.model.vo.customerArchives.FamilyMedicalHistoryVo;
import com.csun.cmny.provider.service.OmcFamilyMedicalHistoryService;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcFamilyMedicalHistoryServiceImpl extends BaseService<OmcFamilyMedicalHistory> implements OmcFamilyMedicalHistoryService {
    @Resource
    private OmcFamilyMedicalHistoryMapper familyMedicalHistoryMapper;

    @Override
    public List<FamilyMedicalHistoryVo> selectFamilyMedicalHistory(Long oldmanId) {
        return familyMedicalHistoryMapper.selectFamilyMedicalHistory(oldmanId);
    }
}
